<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 1200px;
            height: 600px;
            border: 1px solid #ddd;
            background-color: tomato;
            background-image:url("2.jpg");
            background-repeat: no-repeat;
            background-position: top;
            background-size:contain ;
        }
    </style>

</head>
<body>
    <div class="box">

    </div>
</body>
</html>